export default {
    getStu(state){
      return state.students.filter(item=>{
        if(item.age>20){
          return true;
        }
      })
    },
    getStuNumber(state,getters){
      return getters.getStu.length;
    },
    getStuAge(state){
      return function(age){
        return state.students.filter(item=>{
          if(item.age>age){
            return true;
          }
        })
      }
    }

  }